from django.urls import path, include
from energy_analysis import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
# router.register(prefix="get_energy_data", viewset=views.EnergyViewSet)

urlpatterns = [
    path("get_energy_data/", views.EnergyView.as_view()),
    # path("get_LastCtStatistics_page/", views.LastCtStatisticsView.as_view()),
]
# 使用视图集编程 Viewset（写法三）
urlpatterns += router.urls
